<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!--
描述：菜单栏
-->
<div class="container-fluid">
    <div class="col-md-4">
        <img src="${pageContext.request.contextPath}/img/caibanpeilogo.png" style="height: 50px;width: 100px"/>
    </div>
    <div class="col-md-4">
        <img src="${pageContext.request.contextPath}/img/header.png" />
    </div>
    <div class="col-md-4" style="padding-top:20px;text-align: right">
        <ol class="list-inline">
            <c:if test="${username==null}"><li><a href="${pageContext.request.contextPath}/login">登录</a></li></c:if>
            <c:if test="${username!=null}">欢迎您：${username}
                <li><a href="${pageContext.request.contextPath}/login" >退出登录</a></li>
            </c:if>
            <li><a href="${pageContext.request.contextPath}/register">注册</a></li>
            <li><a href="${pageContext.request.contextPath}/cart" onclick="pageCart()">购物车</a></li>
            <li><a href="${pageContext.request.contextPath}/order" >我的订单</a></li>
        </ol>
    </div>
</div>
<!--
描述：导航条
-->
<div class="container-fluid">
    <nav class="navbar navbar-inverse">
        <div class="container-fluid">
            <!-- Brand and toggle get grouped for better mobile display -->
            <div class="navbar-header">
                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="${pageContext.request.contextPath}/index">首页</a>
            </div>

            <!-- Collect the nav links, forms, and other content for toggling -->
            <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                <ul class="nav navbar-nav">
                    <li class="active"><a href="#">四川建材</a></li>
                    <li><a href="#">家装建材</a></li>
                    <li><a href="#">装饰建材</a></li>
                    <li><a href="#">广州建材</a></li>
                    <li><a href="#">建材公司</a></li>
                    <li><a href="#">武汉建材</a></li>
                    <li><a href="#">新型建材</a></li>
                    <li><a href="#">佛山建材</a></li>
                    <li><a href="#">家具建材</a></li>
                </ul>
                <form class="navbar-form navbar-right" role="search">
                    <div class="form-group">
                        <input type="text" class="form-control" placeholder="请输入需要查询的建材">
                    </div>
                    <button type="submit" class="btn btn-default">查询</button>
                </form>

            </div>
            <!-- /.navbar-collapse -->
        </div>
        <!-- /.container-fluid -->
    </nav>
</div>
<script>
    // function logOut() {
    //
    // }
</script>

